<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/gstEncoder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('gstEncoder_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gstEncoder.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gstEncoder_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GSTREAMER_ENCODER_H__</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GSTREAMER_ENCODER_H__</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstUtility_8h.html">gstUtility.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classgstEncoder.html">   35</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgstEncoder.html">gstEncoder</a></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;{</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstEncoder.html">gstEncoder</a>* <a class="code" href="classgstEncoder.html#aa7ba6ff93884d32a5c4f1ccf7d563c6c">Create</a>( <a class="code" href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a> codec, uint32_t width, uint32_t height, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename );</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        </div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstEncoder.html">gstEncoder</a>* <a class="code" href="classgstEncoder.html#aa7ba6ff93884d32a5c4f1ccf7d563c6c">Create</a>( <a class="code" href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a> codec, uint32_t width, uint32_t height, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipAddress, uint16_t port );</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keyword">static</span> <a class="code" href="classgstEncoder.html">gstEncoder</a>* <a class="code" href="classgstEncoder.html#aa7ba6ff93884d32a5c4f1ccf7d563c6c">Create</a>( <a class="code" href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a> codec, uint32_t width, uint32_t height, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipAddress, uint16_t port );</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        </div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="classgstEncoder.html#a5a56a6a5c4a3ea887fa71a63f9c3bcc3">~gstEncoder</a>();</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        </div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a1a55e0ab8fad32664ec08fac23149c7f">EncodeRGBA</a>( uint8_t* buffer );</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a1a55e0ab8fad32664ec08fac23149c7f">EncodeRGBA</a>( <span class="keywordtype">float</span>* buffer, <span class="keywordtype">float</span> maxPixelValue=255.0f );</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#ac2db04852650ab8c058afef000cbfa0e">EncodeI420</a>( <span class="keywordtype">void</span>* buffer, <span class="keywordtype">size_t</span> size );</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a9b120626b23929f6637beb7369b91c59">   91</a></span>&#160;        <span class="keyword">inline</span> uint32_t <a class="code" href="classgstEncoder.html#a9b120626b23929f6637beb7369b91c59">GetWidth</a>()<span class="keyword"> const                        </span>{ <span class="keywordflow">return</span> <a class="code" href="classgstEncoder.html#a137c6c229633814af06e28b513d3d492">mWidth</a>; }</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ab0c40e1b347ce0ac96f5dc0dfa55dc53">   96</a></span>&#160;        <span class="keyword">inline</span> uint32_t <a class="code" href="classgstEncoder.html#ab0c40e1b347ce0ac96f5dc0dfa55dc53">GetHeight</a>()<span class="keyword"> const                       </span>{ <span class="keywordflow">return</span> <a class="code" href="classgstEncoder.html#a9e4a3463e818b092ca40cfb8668c8cba">mHeight</a>; }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="classgstEncoder.html#a78c876da2d5d3b0daaa58bf807d06cc7">gstEncoder</a>();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        </div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a967e02f227d4739ead8760bba862efa1">buildCapsStr</a>();</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a3a03a7c3f2633842618f8d9e9e21c5a0">buildLaunchStr</a>();</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="classgstEncoder.html#a4a3b60cb47c408ed1aa7be2ab023e0a5">init</a>( <a class="code" href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a> codec, uint32_t width, uint32_t height, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipAddress, uint16_t port );</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        </div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#afd341f4bfcdd3100bcc24a102b7793f4">onNeedData</a>( _GstElement* pipeline, uint32_t size, <span class="keywordtype">void</span>* user_data );</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classgstEncoder.html#a7c4ca1b07a85870a9fb3fabfa1afe4b8">onEnoughData</a>( _GstElement* pipeline, <span class="keywordtype">void</span>* user_data );</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">  109</a></span>&#160;        _GstBus*     <a class="code" href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">mBus</a>;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">  110</a></span>&#160;        _GstCaps*    <a class="code" href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">mBufferCaps</a>;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">  111</a></span>&#160;        _GstElement* <a class="code" href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">mAppSrc</a>;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">  112</a></span>&#160;        _GstElement* <a class="code" href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">mPipeline</a>;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a697caf08ebd8be9488ef09d86b763054">  113</a></span>&#160;        <a class="code" href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a>     <a class="code" href="classgstEncoder.html#a697caf08ebd8be9488ef09d86b763054">mCodec</a>;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">  114</a></span>&#160;        <span class="keywordtype">bool</span>         <a class="code" href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">mNeedData</a>;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a137c6c229633814af06e28b513d3d492">  115</a></span>&#160;        uint32_t     <a class="code" href="classgstEncoder.html#a137c6c229633814af06e28b513d3d492">mWidth</a>;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a9e4a3463e818b092ca40cfb8668c8cba">  116</a></span>&#160;        uint32_t     <a class="code" href="classgstEncoder.html#a9e4a3463e818b092ca40cfb8668c8cba">mHeight</a>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">  118</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">mCapsStr</a>;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">  119</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">mLaunchStr</a>;</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">  120</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">mOutputPath</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">  121</a></span>&#160;        std::string  <a class="code" href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">mOutputIP</a>;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">  122</a></span>&#160;        uint16_t     <a class="code" href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">mOutputPort</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="comment">// format conversion buffers</span></div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classgstEncoder.html#afdcb92ab5131d91c48701b9daee28c83">  125</a></span>&#160;        <span class="keywordtype">void</span>* <a class="code" href="classgstEncoder.html#afdcb92ab5131d91c48701b9daee28c83">mCpuRGBA</a>;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a953ceef371670a9a266d1072ab05df19">  126</a></span>&#160;        <span class="keywordtype">void</span>* <a class="code" href="classgstEncoder.html#a953ceef371670a9a266d1072ab05df19">mGpuRGBA</a>;</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classgstEncoder.html#a1fb6f5aa21a6ae3b44f2d0ad9c2873fe">  127</a></span>&#160;        <span class="keywordtype">void</span>* <a class="code" href="classgstEncoder.html#a1fb6f5aa21a6ae3b44f2d0ad9c2873fe">mCpuI420</a>;</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classgstEncoder.html#ad1c4005533df56f9baf5b9eb4ead6510">  128</a></span>&#160;        <span class="keywordtype">void</span>* <a class="code" href="classgstEncoder.html#ad1c4005533df56f9baf5b9eb4ead6510">mGpuI420</a>;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classgstEncoder_html_a628403dfed854cf7a2476f5cd64025fa"><div class="ttname"><a href="classgstEncoder.html#a628403dfed854cf7a2476f5cd64025fa">gstEncoder::mNeedData</a></div><div class="ttdeci">bool mNeedData</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:114</div></div>
<div class="ttc" id="classgstEncoder_html_a9b120626b23929f6637beb7369b91c59"><div class="ttname"><a href="classgstEncoder.html#a9b120626b23929f6637beb7369b91c59">gstEncoder::GetWidth</a></div><div class="ttdeci">uint32_t GetWidth() const</div><div class="ttdoc">Retrieve the width that the encoder was created for, in pixels. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:91</div></div>
<div class="ttc" id="classgstEncoder_html_ac2db04852650ab8c058afef000cbfa0e"><div class="ttname"><a href="classgstEncoder.html#ac2db04852650ab8c058afef000cbfa0e">gstEncoder::EncodeI420</a></div><div class="ttdeci">bool EncodeI420(void *buffer, size_t size)</div><div class="ttdoc">Encode the next I420 frame provided by the user. </div></div>
<div class="ttc" id="classgstEncoder_html_a7c4ca1b07a85870a9fb3fabfa1afe4b8"><div class="ttname"><a href="classgstEncoder.html#a7c4ca1b07a85870a9fb3fabfa1afe4b8">gstEncoder::onEnoughData</a></div><div class="ttdeci">static void onEnoughData(_GstElement *pipeline, void *user_data)</div></div>
<div class="ttc" id="classgstEncoder_html_a1f8738f12d7c6df91152cfc9f7366fc8"><div class="ttname"><a href="classgstEncoder.html#a1f8738f12d7c6df91152cfc9f7366fc8">gstEncoder::mOutputIP</a></div><div class="ttdeci">std::string mOutputIP</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:121</div></div>
<div class="ttc" id="classgstEncoder_html_a5a56a6a5c4a3ea887fa71a63f9c3bcc3"><div class="ttname"><a href="classgstEncoder.html#a5a56a6a5c4a3ea887fa71a63f9c3bcc3">gstEncoder::~gstEncoder</a></div><div class="ttdeci">~gstEncoder()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="classgstEncoder_html_a3a03a7c3f2633842618f8d9e9e21c5a0"><div class="ttname"><a href="classgstEncoder.html#a3a03a7c3f2633842618f8d9e9e21c5a0">gstEncoder::buildLaunchStr</a></div><div class="ttdeci">bool buildLaunchStr()</div></div>
<div class="ttc" id="classgstEncoder_html_ae9aaaee5990a6683707a7ac865928288"><div class="ttname"><a href="classgstEncoder.html#ae9aaaee5990a6683707a7ac865928288">gstEncoder::mBus</a></div><div class="ttdeci">_GstBus * mBus</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:109</div></div>
<div class="ttc" id="classgstEncoder_html_aec885b1948e7a4781e8a39d0432724ca"><div class="ttname"><a href="classgstEncoder.html#aec885b1948e7a4781e8a39d0432724ca">gstEncoder::mLaunchStr</a></div><div class="ttdeci">std::string mLaunchStr</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:119</div></div>
<div class="ttc" id="classgstEncoder_html_a9e4a3463e818b092ca40cfb8668c8cba"><div class="ttname"><a href="classgstEncoder.html#a9e4a3463e818b092ca40cfb8668c8cba">gstEncoder::mHeight</a></div><div class="ttdeci">uint32_t mHeight</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:116</div></div>
<div class="ttc" id="classgstEncoder_html_adb9874d03ba3bda30900374acd873e5a"><div class="ttname"><a href="classgstEncoder.html#adb9874d03ba3bda30900374acd873e5a">gstEncoder::mAppSrc</a></div><div class="ttdeci">_GstElement * mAppSrc</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:111</div></div>
<div class="ttc" id="classgstEncoder_html_a78c876da2d5d3b0daaa58bf807d06cc7"><div class="ttname"><a href="classgstEncoder.html#a78c876da2d5d3b0daaa58bf807d06cc7">gstEncoder::gstEncoder</a></div><div class="ttdeci">gstEncoder()</div></div>
<div class="ttc" id="classgstEncoder_html_a953ceef371670a9a266d1072ab05df19"><div class="ttname"><a href="classgstEncoder.html#a953ceef371670a9a266d1072ab05df19">gstEncoder::mGpuRGBA</a></div><div class="ttdeci">void * mGpuRGBA</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:126</div></div>
<div class="ttc" id="classgstEncoder_html_a77b62cf64dceab9492e5e45dbdccdb0a"><div class="ttname"><a href="classgstEncoder.html#a77b62cf64dceab9492e5e45dbdccdb0a">gstEncoder::mOutputPort</a></div><div class="ttdeci">uint16_t mOutputPort</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:122</div></div>
<div class="ttc" id="classgstEncoder_html_a722fde8fa1cbd516597ea0a5e8962c22"><div class="ttname"><a href="classgstEncoder.html#a722fde8fa1cbd516597ea0a5e8962c22">gstEncoder::mOutputPath</a></div><div class="ttdeci">std::string mOutputPath</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:120</div></div>
<div class="ttc" id="classgstEncoder_html"><div class="ttname"><a href="classgstEncoder.html">gstEncoder</a></div><div class="ttdoc">Hardware-accelerated H.264/H.265 video encoder for Jetson using GStreamer. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:35</div></div>
<div class="ttc" id="group__codec_html_ga32ee01b5f56c4765d7c36fec97ba2260"><div class="ttname"><a href="group__codec.html#ga32ee01b5f56c4765d7c36fec97ba2260">gstCodec</a></div><div class="ttdeci">gstCodec</div><div class="ttdoc">Video codec (H.264/H.265) enumeration. </div><div class="ttdef"><b>Definition:</b> gstUtility.h:34</div></div>
<div class="ttc" id="classgstEncoder_html_ad1c4005533df56f9baf5b9eb4ead6510"><div class="ttname"><a href="classgstEncoder.html#ad1c4005533df56f9baf5b9eb4ead6510">gstEncoder::mGpuI420</a></div><div class="ttdeci">void * mGpuI420</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:128</div></div>
<div class="ttc" id="classgstEncoder_html_afd341f4bfcdd3100bcc24a102b7793f4"><div class="ttname"><a href="classgstEncoder.html#afd341f4bfcdd3100bcc24a102b7793f4">gstEncoder::onNeedData</a></div><div class="ttdeci">static void onNeedData(_GstElement *pipeline, uint32_t size, void *user_data)</div></div>
<div class="ttc" id="classgstEncoder_html_a7a7be81637bfd842c25e7d66abaa11d7"><div class="ttname"><a href="classgstEncoder.html#a7a7be81637bfd842c25e7d66abaa11d7">gstEncoder::mPipeline</a></div><div class="ttdeci">_GstElement * mPipeline</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:112</div></div>
<div class="ttc" id="classgstEncoder_html_afdcb92ab5131d91c48701b9daee28c83"><div class="ttname"><a href="classgstEncoder.html#afdcb92ab5131d91c48701b9daee28c83">gstEncoder::mCpuRGBA</a></div><div class="ttdeci">void * mCpuRGBA</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:125</div></div>
<div class="ttc" id="classgstEncoder_html_a4a3b60cb47c408ed1aa7be2ab023e0a5"><div class="ttname"><a href="classgstEncoder.html#a4a3b60cb47c408ed1aa7be2ab023e0a5">gstEncoder::init</a></div><div class="ttdeci">bool init(gstCodec codec, uint32_t width, uint32_t height, const char *filename, const char *ipAddress, uint16_t port)</div></div>
<div class="ttc" id="classgstEncoder_html_a967e02f227d4739ead8760bba862efa1"><div class="ttname"><a href="classgstEncoder.html#a967e02f227d4739ead8760bba862efa1">gstEncoder::buildCapsStr</a></div><div class="ttdeci">bool buildCapsStr()</div></div>
<div class="ttc" id="gstUtility_8h_html"><div class="ttname"><a href="gstUtility_8h.html">gstUtility.h</a></div></div>
<div class="ttc" id="classgstEncoder_html_ab11a3b2c977fc8e1dc1f34122223e050"><div class="ttname"><a href="classgstEncoder.html#ab11a3b2c977fc8e1dc1f34122223e050">gstEncoder::mCapsStr</a></div><div class="ttdeci">std::string mCapsStr</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:118</div></div>
<div class="ttc" id="classgstEncoder_html_a9dc51057a967892d1a6ed115bb1a33e9"><div class="ttname"><a href="classgstEncoder.html#a9dc51057a967892d1a6ed115bb1a33e9">gstEncoder::mBufferCaps</a></div><div class="ttdeci">_GstCaps * mBufferCaps</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:110</div></div>
<div class="ttc" id="classgstEncoder_html_a1fb6f5aa21a6ae3b44f2d0ad9c2873fe"><div class="ttname"><a href="classgstEncoder.html#a1fb6f5aa21a6ae3b44f2d0ad9c2873fe">gstEncoder::mCpuI420</a></div><div class="ttdeci">void * mCpuI420</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:127</div></div>
<div class="ttc" id="classgstEncoder_html_a1a55e0ab8fad32664ec08fac23149c7f"><div class="ttname"><a href="classgstEncoder.html#a1a55e0ab8fad32664ec08fac23149c7f">gstEncoder::EncodeRGBA</a></div><div class="ttdeci">bool EncodeRGBA(uint8_t *buffer)</div><div class="ttdoc">Encode the next fixed-point RGBA frame. </div></div>
<div class="ttc" id="classgstEncoder_html_a137c6c229633814af06e28b513d3d492"><div class="ttname"><a href="classgstEncoder.html#a137c6c229633814af06e28b513d3d492">gstEncoder::mWidth</a></div><div class="ttdeci">uint32_t mWidth</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:115</div></div>
<div class="ttc" id="classgstEncoder_html_ab0c40e1b347ce0ac96f5dc0dfa55dc53"><div class="ttname"><a href="classgstEncoder.html#ab0c40e1b347ce0ac96f5dc0dfa55dc53">gstEncoder::GetHeight</a></div><div class="ttdeci">uint32_t GetHeight() const</div><div class="ttdoc">Retrieve the height that the encoder was created for, in pixels. </div><div class="ttdef"><b>Definition:</b> gstEncoder.h:96</div></div>
<div class="ttc" id="classgstEncoder_html_aa7ba6ff93884d32a5c4f1ccf7d563c6c"><div class="ttname"><a href="classgstEncoder.html#aa7ba6ff93884d32a5c4f1ccf7d563c6c">gstEncoder::Create</a></div><div class="ttdeci">static gstEncoder * Create(gstCodec codec, uint32_t width, uint32_t height, const char *filename)</div><div class="ttdoc">Create an encoder instance that outputs to a file on disk. </div></div>
<div class="ttc" id="classgstEncoder_html_a697caf08ebd8be9488ef09d86b763054"><div class="ttname"><a href="classgstEncoder.html#a697caf08ebd8be9488ef09d86b763054">gstEncoder::mCodec</a></div><div class="ttdeci">gstCodec mCodec</div><div class="ttdef"><b>Definition:</b> gstEncoder.h:113</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="gstEncoder_8h.html">gstEncoder.h</a></li>
    <li class="footer">Generated on Fri Jun 21 2019 16:23:15 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
